package ua.edu.nuos.jeetraining2012.automator.translator.dao;

import org.xml.sax.SAXException;

import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;
import java.nio.file.Path;

/**
 * @author Timur Yarosh
 *         Date: 10.06.13
 *         Time: 18:34
 */
public interface IDescriptorDao<T> {
    /**
     * Read process definition xml
     * @param path path to xml file
     * @return definition entity
     */
    T read(Path path) throws ParserConfigurationException, IOException, SAXException;
    void write(T entity, Path path);
}
